package com.yjhb.android.sbz.activity.rule;

import android.os.Bundle;
import android.widget.TextView;

import com.yjhb.android.sbz.R;
import com.yjhb.android.sbz.activity.BaseActivity;
import com.jojo.android.zxlib.base.mvp.BasePresenter;

import java.util.Calendar;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 创建者 zx
 * 创建时间 2021/1/15 16:45
 */
public class RuleRewardActivity extends BaseActivity {
    private final String TAG = "RuleRewardActivity";
    @BindView(R.id.rule_1)
    TextView rule1;

    @Override
    protected BasePresenter initPresenter() {
        return null;
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_rule_reward;
    }

    @Override
    protected void initUI() {
        Calendar calendar = Calendar.getInstance();
        int day = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);
        String rule = new StringBuilder("一、推广奖励规则，活动时间内")
                .append("(")
                .append(calendar.get(Calendar.MONTH) + 1)
                .append(".")
                .append(1)
                .append("-")
                .append(calendar.get(Calendar.MONTH) + 1)
                .append(".")
                .append(day)
                .append(")")
                .append("邀请的好友一级二级完成任务总金额对应阶梯奖励")
                .toString();
        rule1.setText(rule);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void regEvent() {

    }

    @OnClick(R.id.back)
    void back() {
        finish();
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }
}
